<template>
  
</template>

<script>
export default {
    methods:{
        setToken(){
            localStorage.setItem("token",this.$route.query.token)
            localStorage.setItem("userid",this.$route.query.userid)
            this.$router.push("/index")
        }
    },
    mounted(){
        this.setToken()
    }
}
</script>

<style>

</style>